import request from '@/utils/request'
import { faceApiUrl } from '../config'
// 商务总包结算定案


/**
 * 分页查询
 * @param {Object} data
 */
export function getFinalList(data) {
  return request({
    url: faceApiUrl + '/contractorSettlementVerdictAudit/getPageContractorSettlementVerdictAudit',
    method: 'post',
    data: data
  })
}

/**
 * 条件查询总包结算定案
 * @param {Object} data
 */
export function queryAuditList(data) {
  return request({
    url: faceApiUrl + '/contractorSettlementVerdictAudit/queryContractorSettlementVerdictAuditList',
    method: 'post',
    data: data
  })
}

/**
 * 总包结算定案顶部统计
 * @param {Object} data
 */
export function getTopTotal(data) {
  return request({
    url: faceApiUrl + '/contractorSettlementVerdictAudit/getTopTotal',
    method: 'post',
    data: data
  })
}

/**
 * 获取总包结算定案信息
 * @param {Object} data
 */
export function getFinalDetail(data) {
  return request({
    url: faceApiUrl + '/contractorSettlementVerdictAudit/getContractorSettlementVerdictAuditById',
    method: 'get',
    params: data
  })
}

/**
 * 添加总包结算定案
 * @param {Object} data
 */
export function finalApprovalAdd(data) {
  return request({
    url: faceApiUrl + '/contractorSettlementVerdictAudit/insertSelective',
    method: 'post',
    data: data
  })
}

/**
 * 修改总包结算定案
 * @param {Object} data
 */
export function finalApprovalUpdate(data) {
  return request({
    url: faceApiUrl + '/contractorSettlementVerdictAudit/updateByPrimaryKeySelective',
    method: 'post',
    data: data
  })
}

/**
 * 删除总包结算定案
 * @param {Object} data
 */
export function finalApprovalDelete(data) {
  return request({
    url: faceApiUrl + '/contractorSettlementVerdictAudit/deleteByPrimaryKey/' + data,
    method: 'get',
    // data: data
  })
}

/**
 * 总包结算定案作废
 * @param {Object} data
 */
export function finalApprovalRevoke(data) {
  return request({
    url: faceApiUrl + '/contractorSettlementVerdictAudit/Revoke/' + data,
    method: 'get',
    // params: data
  })
}

/**
 * 撤销总包结算定案
 * @param {Object} data
 */
export function finalApprovalCancel(data) {
  return request({
    url: faceApiUrl + '/contractorSettlementVerdictAudit/cancelProcess/' + data,
    method: 'get',
    // params: data
  })
}

/**
 * 获取过滤总包结算报送数据
 * @param {Object} data
 */
export function getFilterSubmission(data) {
  return request({
    url: faceApiUrl + '/contractorSettlementVerdictAudit/getFilterSubmission',
    method: 'get',
    params: data
  })
}